@echo off

set repositories=awtk awtk-mvvm awtk-modbus awtk-sqlite3 awtk-widget-table-view awtk-database-repository awtk-widget-slidable-row awtk-widget-table-view-mvvm awtk-widget-slider-circle

for %%f in (%repositories%) do (
  if exist %%f (
    echo %%f exist.
    cd %%f
    git pull
    cd ..
  ) else (
    git clone https://gitee.com/zlgopen/%%f.git
  )

  cd %%f
  scons WITH_JERRYSCRIPT=False
  cd ..
)

